home *** CD-ROM | disk | FTP | other *** search
- #
- # Simple test of the VtInfo command
- #
-
- proc CloseCB {cbs} {
- VtClose; exit 0
- }
-
- set app [VtOpen info]
-
- set charm [VtInfo -charm]
- set version [VtInfo -version]
- set colors [VtInfo -colors]
- set height [VtInfo -displayHeight]
- set width [VtInfo -displayWidth]
-
- set msg "Charm is $charm\nVersion is $version\nNumber of Colors: $colors
- Dimension: $width X $height"
-
- set dlog [VtMessageDialog $app.mess \
- -message $msg \
- -ok \
- -okCallback CloseCB \
- -font medBoldFont \
- ]
-
- VtShow $dlog
- VtMainLoop
-